home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
progjour
/
1991
/
06
/
alib
/
sel_min.asm
< prev
next >
Wrap
Assembly Source File
|
1991-06-25
|
325b
|
23 lines
include asm.inc
public select_min_count
.code
;; select min count
;
; entry CX count1
; DX AX count2
; exit CX minimum of count1 and count2
;
select_min_count proc
or dx,dx
jnz smc1 ; if count2 > 64k
cmp ax,cx
ja smc1 ; if count2 > count1
mov cx,ax
smc1: ret
select_min_count endp
end